﻿using System.Collections.Generic;


namespace Core.WeiXin
{
    /// <summary>
    /// WeixinModel 的摘要说明
    /// </summary>
    public class WeiXinModel
    {
        public class GetToken
        {
            private string _access_token = "";
            public string access_token
            {
                get
                {
                    return _access_token;
                }
                set
                {
                    _access_token = value;
                }
            }
            private int _expires_in = 0;
            public int expires_in
            {
                get
                {
                    return _expires_in;
                }
                set
                {
                    _expires_in = value;
                }
            }
            private string _refresh_token = "";
            public string refresh_token
            {
                get
                {
                    return _refresh_token;
                }
                set
                {
                    _refresh_token = value;
                }
            }

            private string _openid = "";
            public string openid
            {
                get
                {
                    return _openid;
                }
                set
                {
                    _openid = value;
                }
            }

            private string _scope = "";
            public string scope
            {
                get
                {
                    return _scope;
                }
                set
                {
                    _scope = value;
                }
            }

            private string _unionid = "";
            public string unionid
            {
                get
                {
                    return _unionid;
                }
                set
                {
                    _unionid = value;
                }
            }


            private int _errcode = 0;
            public int errcode
            {
                get
                {
                    return _errcode;
                }
                set
                {
                    _errcode = value;
                }
            }


            private string _errmsg = "";
            public string errmsg
            {
                get
                {
                    return _errmsg;
                }
                set
                {
                    _errmsg = value;
                }
            }
        } 
        public class TokedataDataModel
        {
            private string _access_token = "";
            public string access_token
            {
                get
                {
                    return _access_token;
                }
                set
                {
                    _access_token = value;
                }
            }

            private int _expires_in = 0;
            public int expires_in
            {
                get
                {
                    return _expires_in;
                }
                set
                {
                    _expires_in = value;
                }
            }
            private int _errcode = 0;
            public int errcode
            {
                get
                {
                    return _errcode;
                }
                set
                {
                    _errcode = value;
                }
            }

            private string _errmsg = "";
            public string errmsg
            {
                get
                {
                    return _errmsg;
                }
                set
                {
                    _errmsg = value;
                }
            }
        }
        public class UserInfoModel
        {
            public string subscribe_scene { get; set; }
            public int qr_scene { get; set; }
            public string qr_scene_str { get; set; }

            private int _subscribe = 0;
            public int subscribe
            {
                get
                {
                    return _subscribe;
                }
                set
                {
                    _subscribe = value;
                }
            }

            private string _openid = "";
            public string openid
            {
                get
                {
                    return _openid;
                }
                set
                {
                    _openid = value;
                }
            }

            private string _nickname = "";
            public string nickname
            {
                get
                {
                    return _nickname;
                }
                set
                {
                    _nickname = value;
                }
            }

            private int _sex = 0;
            public int sex
            {
                get
                {
                    return _sex;
                }
                set
                {
                    _sex = value;
                }
            }

            private string _language = "";
            public string language
            {
                get
                {
                    return _language;
                }
                set
                {
                    _language = value;
                }
            }

            private string _city = "";
            public string city
            {
                get
                {
                    return _city;
                }
                set
                {
                    _city = value;
                }
            }

            private string _province = "";
            public string province
            {
                get
                {
                    return _province;
                }
                set
                {
                    _province = value;
                }
            }

            private string _country = "";
            public string country
            {
                get
                {
                    return _country;
                }
                set
                {
                    _country = value;
                }
            }

            private string _headimgurl = "";
            public string headimgurl
            {
                get
                {
                    return _headimgurl;
                }
                set
                {
                    _headimgurl = value;
                }
            }

            private int _subscribe_time = 0;
            public int subscribe_time
            {
                get
                {
                    return _subscribe_time;
                }
                set
                {
                    _subscribe_time = value;
                }
            }

            private string _unionid = "";
            public string unionid
            {
                get
                {
                    return _unionid;
                }
                set
                {
                    _unionid = value;
                }
            }

            private string _remark = "";
            public string remark
            {
                get
                {
                    return _remark;
                }
                set
                {
                    _remark = value;
                }
            }

            private int _groupid = 0;
            public int groupid
            {
                get
                {
                    return _groupid;
                }
                set
                {
                    _groupid = value;
                }
            }

            private int _errcode = 0;
            public int errcode
            {
                get
                {
                    return _errcode;
                }
                set
                {
                    _errcode = value;
                }
            }

            private string _errmsg = "";
            public string errmsg
            {
                get
                {
                    return _errmsg;
                }
                set
                {
                    _errmsg = value;
                }
            }
            private List<string> _privilege;
            public List<string> privilege
            {
                get
                {
                    return _privilege;
                }
                set
                {
                    _privilege = value;
                }
            }


            private List<string> _tagid_list;
            public List<string> tagid_list
            {
                get
                {
                    return _tagid_list;
                }
                set
                {
                    _tagid_list = value;
                }
            } 

        }
        public class Api_ticket
        {
            private int _errcode = 0;
            public int errcode
            {
                get
                {
                    return _errcode;
                }
                set
                {
                    _errcode = value;
                }
            }

            private string _errmsg = "";
            public string errmsg
            {
                get
                {
                    return _errmsg;
                }
                set
                {
                    _errmsg = value;
                }
            }

            private string _ticket = "";
            public string ticket
            {
                get
                {
                    return _ticket;
                }
                set
                {
                    _ticket = value;
                }
            }

            private int _expires_in = 0;
            public int expires_in
            {
                get
                {
                    return _expires_in;
                }
                set
                {
                    _expires_in = value;
                }
            }

        }

        public class WxJsApiParam
        {
            private string _appId = "";

            public string appId
            {
                get { return _appId; }
                set { _appId = value; }
            }
            private string _nonceStr = "";

            public string nonceStr
            {
                get { return _nonceStr; }
                set { _nonceStr = value; }
            }
            private string _package = "";

            public string package
            {
                get { return _package; }
                set { _package = value; }
            }
            private string _paySign = "";

            public string paySign
            {
                get { return _paySign; }
                set { _paySign = value; }
            }

            private string _signType = "";
            public string signType
            {
                get { return _signType; }
                set { _signType = value; }
            }
            private string _timeStamp = "";
            public string timeStamp
            {
                get { return _timeStamp; }
                set { _timeStamp = value; }
            }

            private string _signature = "";

            public string signature
            {
                get { return _signature; }
                set { _signature = value; }
            }
        }

        public class WxRedModel
        {
            /// <summary>
            /// 用户openid
            /// </summary>
            private string _re_openid = "";
            public string re_openid
            {
                get { return _re_openid; }
                set { _re_openid = value; }
            }
            /// <summary>
            /// 付款金额
            /// </summary>
            private string _total_amount = "";
            public string total_amount
            {
                get { return _total_amount; }
                set { _total_amount = value; }
            }
            /// <summary>
            /// 随机字符串
            /// </summary>
            private string _nonce_str = "";

            public string nonce_str
            {
                get { return _nonce_str; }
                set { _nonce_str = value; }
            }
            /// <summary>
            /// Ip地址
            /// </summary>
            private string _client_ip = "";

            public string client_ip
            {
                get { return _client_ip; }
                set { _client_ip = value; }
            }
            /// <summary>
            /// 商户订单号
            /// </summary>
            private string _mch_billno = "";

            public string mch_billno
            {
                get { return _mch_billno; }
                set { _mch_billno = value; }
            }
            /// <summary>
            /// 商户名称
            /// </summary>
            private string _send_name = "";

            public string send_name
            {
                get { return _send_name; }
                set { _send_name = value; }
            }
            /// <summary>
            /// 红包祝福语
            /// </summary>
            private string _wishing = "";

            public string wishing
            {
                get { return _wishing; }
                set { _wishing = value; }
            }
            /// <summary>
            /// 活动名称
            /// </summary>
            private string _act_name = "";

            public string act_name
            {
                get { return _act_name; }
                set { _act_name = value; }
            }
            /// <summary>
            /// 备注
            /// </summary>
            private string _remark = "";

            public string remark
            {
                get { return _remark; }
                set { _remark = value; }
            }
            /// <summary>
            /// 红包发放总人数
            /// </summary>
            private string _total_num = "";

            public string total_num
            {
                get { return _total_num; }
                set { _total_num = value; }
            }
        }
        public class WxRedResultModel
        {
            /// <summary>
            /// 返回状态码
            /// </summary>
            private string _return_code = "";

            public string return_code
            {
                get { return _return_code; }
                set { _return_code = value; }
            }
            /// <summary>
            /// 返回信息
            /// </summary>
            private string _return_msg = "";

            public string return_msg
            {
                get { return _return_msg; }
                set { _return_msg = value; }
            }
            /// <summary>
            /// 业务结果
            /// </summary>
            private string _result_code = "";

            public string result_code
            {
                get { return _result_code; }
                set { _result_code = value; }
            }
            /// <summary>
            /// 错误代码
            /// </summary>
            private string _err_code = "";

            public string err_code
            {
                get { return _err_code; }
                set { _err_code = value; }
            }
            /// <summary>
            /// 错误代码描述
            /// </summary>
            private string _err_code_des = "";

            public string err_code_des
            {
                get { return _err_code_des; }
                set { _err_code_des = value; }
            }
            /// <summary>
            /// 商户订单号
            /// </summary>
            private string _mch_billno = "";

            public string mch_billno
            {
                get { return _mch_billno; }
                set { _mch_billno = value; }
            }
            /// <summary>
            /// 商户号
            /// </summary>
            private string _mch_id = "";

            public string mch_id
            {
                get { return _mch_id; }
                set { _mch_id = value; }
            }
            /// <summary>
            /// 公众账号appid
            /// </summary>
            private string _wxappid = "";

            public string wxappid
            {
                get { return _wxappid; }
                set { _wxappid = value; }
            }
            /// <summary>
            /// 用户openid
            /// </summary>
            private string _re_openid = "";

            public string re_openid
            {
                get { return _re_openid; }
                set { _re_openid = value; }
            }
            /// <summary>
            /// 付款金额
            /// </summary>
            private string _total_amount = "";

            public string total_amount
            {
                get { return _total_amount; }
                set { _total_amount = value; }
            }
            /// <summary>
            /// 微信单号
            /// </summary>
            private string _send_listid = "";

            public string send_listid
            {
                get { return _send_listid; }
                set { _send_listid = value; }
            }
            /// <summary>
            /// 发放成功时间
            /// </summary>
            private string _send_time = "";

            public string send_time
            {
                get { return _send_time; }
                set { _send_time = value; }
            }
            /// <summary>
            /// 签名
            /// </summary>
            private string _sign = "";

            public string sign
            {
                get { return _sign; }
                set { _sign = value; }
            }
        }

        public class SelRedResultModel
        {
            private string _return_code = "";
            public string return_code
            {
                get { return _return_code; }
                set { _return_code = value; }
            }

            private string _return_msg = "";
            public string return_msg
            {
                get { return _return_msg; }
                set { _return_msg = value; }
            }
            private string _result_code = "";
            public string result_code
            {
                get { return _result_code; }
                set { _result_code = value; }
            }
            private string _err_code = "";
            public string err_code
            {
                get { return _err_code; }
                set { _err_code = value; }
            }
            private string _err_code_des = "";
            public string err_code_des
            {
                get { return _err_code_des; }
                set { _err_code_des = value; }
            }
            private string _mch_id = "";
            public string mch_id
            {
                get { return _mch_id; }
                set { _mch_id = value; }
            }
            private string _appid = "";
            public string appid
            {
                get { return _appid; }
                set { _appid = value; }
            }
            private string _openid = "";
            public string openid
            {
                get { return _openid; }
                set { _openid = value; }
            }
            private string _detail_id = "";
            public string detail_id
            {
                get { return _detail_id; }
                set { _detail_id = value; }
            }
            private string _send_type = "";
            public string send_type
            {
                get { return _send_type; }
                set { _send_type = value; }
            }
            private string _hb_type = "";
            public string hb_type
            {
                get { return _hb_type; }
                set { _hb_type = value; }
            }
            private string _total_num = "";
            public string total_num
            {
                get { return _total_num; }
                set { _total_num = value; }
            }
            private string _total_amount = "";
            public string total_amount
            {
                get { return _total_amount; }
                set { _total_amount = value; }
            }
            private string _send_time = "";
            public string send_time
            {
                get { return _send_time; }
                set { _send_time = value; }
            }
            private string _wishing = "";
            public string wishing
            {
                get { return _wishing; }
                set { _wishing = value; }
            }
            private string _act_name = "";
            public string act_name
            {
                get { return _act_name; }
                set { _act_name = value; }
            }
            private string _mch_billno = "";
            public string mch_billno
            {
                get { return _mch_billno; }
                set { _mch_billno = value; }
            }
            private string _status = "";
            public string status
            {
                get { return _status; }
                set { _status = value; }
            }
            private string _remark = "";
            public string remark
            {
                get { return _remark; }
                set { _remark = value; }
            }
            private string _reason = "";
            public string reason
            {
                get { return _reason; }
                set { _reason = value; }
            }
            private string _hblist = "";
            public string hblist
            {
                get { return _hblist; }
                set { _hblist = value; }
            }
            private List<HbInfo> _hbinfo;
            public List<HbInfo> hbinfo
            {
                get { return _hbinfo; }
                set { _hbinfo = value; }
            }

            private string _refund_time = "";
            public string refund_time
            {
                get { return _refund_time; }
                set { _refund_time = value; }
            }

            private string _refund_amount = "";
            public string refund_amount
            {
                get { return _refund_amount; }
                set { _refund_amount = value; }
            }

        }
        public class HbInfo
        {
            private string _openid = "";
            public string openid
            {
                get { return _openid; }
                set { _openid = value; }
            }
            private string _amount = "";
            public string amount
            {
                get { return _amount; }
                set { _amount = value; }
            }
            private string _rcv_time = "";
            public string rcv_time
            {
                get { return _rcv_time; }
                set { _rcv_time = value; }
            }
        } 


        //{"errcode":0,"errmsg":"ok","msgid":401589179}

        public class MessageResultModel
        {
            private string _errmsg = "";
            public string errmsg
            {
                get { return _errmsg; }
                set { _errmsg = value; }
            }

            private int _errcode = 0;
            public int errcode
            {
                get
                {
                    return _errcode;
                }
                set
                {
                    _errcode = value;
                }
            }

            private string  _msgid ="0";
            public string msgid
            {
                get
                {
                    return _msgid;
                }
                set
                {
                    _msgid = value;
                }
            }
        } 
    }
}